package com.suxg.hbase.model;

import java.util.ArrayList;
import java.util.List;

public class TestColumnMuitsModel {

	private String rowKey;

	private SchoolModel schoolModel;

	private ClassInfoModel classInfoModel;

	private TeacherModel teacherModel;

	private StudentModel studentModel;

	public String getRowKey() {
		return rowKey;
	}

	public void setRowKey(String rowKey) {
		this.rowKey = rowKey;
	}

	public SchoolModel getSchoolModel() {
		return schoolModel;
	}

	public void setSchoolModel(SchoolModel schoolModel) {
		this.schoolModel = schoolModel;
	}

	public ClassInfoModel getClassInfoModel() {
		return classInfoModel;
	}

	public void setClassInfoModel(ClassInfoModel classInfoModel) {
		this.classInfoModel = classInfoModel;
	}

	public TeacherModel getTeacherModel() {
		return teacherModel;
	}

	public void setTeacherModel(TeacherModel teacherModel) {
		this.teacherModel = teacherModel;
	}

	public StudentModel getStudentModel() {
		return studentModel;
	}

	public void setStudentModel(StudentModel studentModel) {
		this.studentModel = studentModel;
	}

	//邓福英
	public static void main(String[] args) {
		TestColumnMuitsModel tm1 = new TestColumnMuitsModel();
		tm1.setRowKey("101");
		SchoolModel sm = new SchoolModel();
		sm.setRowKey("101");
		sm.setAaa("aaa");
		tm1.setSchoolModel(sm);
		List<TestColumnMuitsModel> list1 = new ArrayList();
		list1.add(tm1);

		TestColumnMuitsModel tm2 = new TestColumnMuitsModel();
		tm2.setRowKey("101");
		SchoolModel sm2 = new SchoolModel();
		sm2.setRowKey("101");
		sm2.setAaa("bbb");
		tm2.setSchoolModel(sm2);
		List<TestColumnMuitsModel> list2 = new ArrayList();
		list2.add(tm2);

		list1.addAll(list2);
		for (TestColumnMuitsModel t : list1) {
			System.out.println(
					t.getRowKey() + "----" + t.getSchoolModel().getRowKey() + "----" + t.getSchoolModel().getAaa());
		}

	}

}
